package com.optimus.dao;

public interface IdNameEntityDAO<T>
{
	/**
	 * This method maps date for the object T into the corresponding database
	 * 
	 * @param entity
	 *            - The object to be mapped
	 */
	public void insertIntoDB(T entity);

	/**
	 * 
	 * @param id
	 *            - the primary key of the entity
	 * @return T - the template object that has been mapped from the database
	 */
	public T selectEntityFromDbById(int id);
}
